package com.perfma.xtest.tool.word;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author: junhui.si
 * @date: 2021-07-09 14:54
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("应用信息")
public class AppDTO {
    @ApiModelProperty("应用ID")
    private Long appId;
    @ApiModelProperty("组织ID")
    private Long orgId;
    @ApiModelProperty("组织名称")
    private String orgName;
    @ApiModelProperty("应用唯一标识")
    private String appCode;
    @ApiModelProperty("应用名字")
    private String appName;
    @ApiModelProperty("应用描述")
    private String appDesc;
    @ApiModelProperty("角色类型：0管理、1编辑、2只读")
    private Enum dataRoleType;
    @ApiModelProperty("是否为压力机。true-是压力机；其他-非压力机")
    private Boolean isStress;

    public Boolean getStress() {
        return Boolean.TRUE.equals(isStress);
    }
}
